package io.gitee.tuo_tuo.jfinaldevassistance.interceptors;

import com.jfinal.aop.Interceptor;
import com.jfinal.aop.Invocation;

public class AuthorityCheck implements Interceptor{

	@Override
	public void intercept(Invocation inv) {
//		Controller controller = inv.getController();
//		User user = controller.getSessionAttr(UserConstants.SESSION_USER);
//		if(user == null){
//            controller.renderJson(new Result(Result.NO_LOGIN, "用户未登录！"));
//			return;
//		}else{
//			inv.invoke();
//		}
		
	}

}